Directive link function’s usage in Angular.js